$(document).ready(function(){
	$('.js-login').on('click', function(){
			$.ajax({
          type: "POST",
          url: "/authenate",
          data: JSON.stringify({id: $("#login-name").val(),pass: $("#login-pass").val()}),
          contentType: 'application/json',
          success: function(response){
          		location.href =response;
          }
        })
	})

})